<div class="main_content_wrapper">
	<div class="main_content_top"></div>
	<div class="main_content">
	<div class="top_funtion">
		<div id="upload_bt"><a id="upload_bt" href="{{ url:site }}file_manager/upload" class="ajax cboxElement">Upload</a></div>
		<div id="search-form">
			<input id="search-input" name="keyword" type="text" maxlength="25" required placeholder="Search" autofocus />
		</div>
	</div>
	<div class="box_content">
		<div id="list_folder">
			<ul>
				<li id="root-folder">
					<div>
						<a href="#" rel="0">Root</a>
					</div>
				</li>
				<ul class="sortable">
					<?php foreach($pages as $page): ?>
							<li id="page_<?php echo $page['id']; ?>">
								<div>
									<a href="#" rel="<?php echo $page['id']; ?>"><?php echo $page['name']; ?></a>
								</div>
						
							<?php if(isset($page['children'])): ?>
								<ul>
									<?php $controller->tree_builder($page); ?>
								</ul>
							</li>
						
							<?php else: ?>
							
							</li>
						<?php endif; ?>
					<?php endforeach; ?>
		
				</ul>
			</ul>	
		</div>
		<div class="list_funtions">
			<div class="file_funtions">
				<a id="new-folder-link" href="{{ url:site }}file_manager/new_folder" title="<?php echo lang('uploking_file_manager_new_folder_label');?>">
					<image src="{{ url:site }}media/images/new_folder.jpg" />
				</a>
				<a id="move-link" href="#" title="<?php echo lang('uploking_file_manager_move_file_folder_label');?>">
					<image src="{{ url:site }}media/images/new_file.jpg" />
				</a>
				<a id="copy-link" href="#" title="<?php echo lang('uploking_file_manager_copy_file_folder_label');?>">
					<image src="{{ url:site }}media/images/copy_file.jpg" />
				</a>
				<a id="rename-link" href="#"><image src="{{ url:site }}media/images/rename.jpg" title="<?php echo lang('uploking_file_manager_rename_file_folder_label');?>" /></a>
				<a id="play-video" href="#"><image src="{{ url:site }}media/images/play_video.jpg" title="<?php echo lang('uploking_file_manager_play_video_label');?>" /></a>
				<a id="view-file-link" href="#"><image src="{{ url:site }}media/images/view_file.jpg" title="<?php echo lang('uploking_file_manager_download_link_label');?>" /></a>
				<a id="download-link" href="#"><image src="{{ url:site }}media/images/download.jpg" title="<?php echo lang('uploking_file_manager_download_file_label');?>"/></a>
				<a id="share-link" href="#"><image src="{{ url:site }}media/images/back_folder.jpg" title="<?php echo lang('uploking_file_manager_share_file_label');?>" /></a>
				<a id="delete_action" href="#"><image src="{{ url:site }}media/images/delete.jpg" title="<?php echo lang('uploking_file_manager_delete_file_folder_label');?>" /></a>
			</div>
			<div id="file_url">
				<input name="selected_file_path" id="selected_file_path" type="text" maxlength="45" value=""/>
				<input name="selected_file_id" id="selected_file_id" value="" type="hidden">
			</div>
			<div id="show_file">
				<table class="data-table">
					<thead>
						<tr class="first">
							<th rowspan="1" class="first">&nbsp;</th>
							<th rowspan="1"><span class="nobr"><?php echo lang('uploking_file_manager_type_label');?></span></th>
							<th rowspan="1"><span class="nobr"><?php echo lang('uploking_file_manager_name_label');?></span></th>
							<th colspan="1"><span class="nobr"><?php echo lang('uploking_file_manager_size_label');?></span></th>
							<th  rowspan="1"><?php echo lang('uploking_file_manager_download_label');?></th>
							<th colspan="1" class="a-center"><?php echo lang('uploking_file_manager_added_label');?></th>
							<!-- <th class="lass" rowspan="1"><a href="#"><img src="{{ url:site }}media/images/setting_icon.jpg" /></a></th> -->
						</tr>
                            </thead>
					<tbody>
					</tbody>
				</table>
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>
<div class="main_content_bottom"></div>
</div>
<div id='confirm'>
	<div class='header'><span><?php echo lang('uploking_confirm_label')?></span></div>
	<div class='message'><?php echo lang('uploking_delete_confirm_message_label')?></div>
		<div class='buttons'>
		<div class='no simplemodal-close'><?php echo lang('uploking_confirm_no_label')?></div><div class='yes'><?php echo lang('uploking_confirm_yes_label')?></div>
	</div>
</div>